import store from '@/store'
export default {
  methods: {
    // 检查用户的操作权限
    checkPermission(key) {
      const roles = store.getters.roles
      if (roles && roles.points) {
        return roles.points.some(item => item === key)
      }
      return false
    }
  }
}
